//
//  DXChatBarBtn.m
//  Molian
//
//  Created by 胡津 on 15/4/23.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//
#define CHAT_BUTTON_SIZE 50

#import "DXChatBarBtn.h"

@implementation DXChatBarBtn

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
//        self.clipsToBounds = YES;
//        [self setBackgroundImage:[UIImage imageWithColor:RGBA(217, 217, 217, 1)] forState:UIControlStateHighlighted];

        
//        self.image = [[UIImageView alloc]initWithFrame:CGRectMake((frame.size.width-CHAT_BUTTON_SIZE)/2, (frame.size.height-CHAT_BUTTON_SIZE-20)/2, CHAT_BUTTON_SIZE, CHAT_BUTTON_SIZE)];
//        [self.image setContentMode:UIViewContentModeScaleAspectFit];
//        [self addSubview:self.image];
        
        self.title = [[UILabel alloc]init];
        self.title.frame = CGRectMake(0, frame.size.height, frame.size.width, 20);
        self.title.textColor = [UIColor grayColor];
        self.title.font = [UIFont fontWithName:FontName size:14];
        self.title.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.title];
        
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
